#ifndef FLOOR2_H
#define FLOOR2_H
#include<qpainter.h>
#include <QMainWindow>

namespace Ui {
class floor2;
}

class floor2 : public QMainWindow
{
    Q_OBJECT

public:
    explicit floor2(QWidget *parent = nullptr);
    ~floor2();
    void paintEvent(QPaintEvent*event);
    void moveadventurer(QRect &adventurer1,int direction,int speed);//移动冒险家  实现一直移动  按空格为停下
    void moveghost(QRect &ghost1,QRect &adventurer1);//移动鬼魂
private:
    Ui::floor2 *ui;
};

#endif // FLOOR2_H
